<h1>Editing course</h1>

<% form_for(@course) do |f| %>
  <%= f.error_messages %>

  <p>
    Semester: <%=h @course.term %>
  </p>
  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :required_ta %><br />
    <%= f.text_field :required_ta %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<%= link_to 'Cancel Edit', {
		:controller => 'courses', 
		:action => 'show', 
		:semester_term => @course.term,
		:course_name => @course.name} %> |
<%= link_to 'Back to '+@course.term, semester_path(@course.term) %>